package com.test.demo.security.controller;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/")
@Tag(name = "首页接口") // Swagger/OpenAPI 注解
public class IndexController {

    @GetMapping("/index")
    @Operation(summary = "首页示例", description = "返回 Hello World")
    public String index() {
        return "Hello Spring Boot 3 + Swagger!";
    }
}
